<template>
	<view class="column-container-center width-100p">
		<image class="logo mb-38" src="../static/common/ic_logo.png"></image>
		<text class="font-333-36 font-weight-600">欢迎使用预约兔</text>
		<text class="font-666-28 font-center ml-60 mr-60 mt-12">{{checkBoss == 0 ? '点击下方按钮或者点击底部“我的 >> 设置设备/人员”按钮开始添加吧' : '请等待负责人完善设备/人员信息'}}</text>
		<text class="red-btn mt-38" @click="gotoAppointment" v-if="checkBoss == 0">设置设备/人员</text>
	</view>
</template>

<script>
	export default {
		name:"toMakeAppointment",
		data() {
			return {
				checkBoss : -1 , // 0老板
			};
		},
		
		onLoad() {
			
		},
		
		created() {
			this.checkBoss = this.cookie.get("ap_user_data").checkBoss
			console.log('checkBoss---'  , this.cookie.get('ap_user_data').checkBoss)
		},
		
		
		methods:{
			gotoAppointment(){
				// uni.switchTab({
				// 	url:'/pages/appointment/index'
				// })
				uni.navigateTo({
					url:'/pages/mine/setBed'
				})
			}
		}
	}
</script>

<style lang="scss">
	.logo{
		width: 134rpx;
		height: 134rpx;
		
	}
</style>